﻿using System;

namespace CarShop.Domain.Entities
{
    public abstract class EntityBase
    {
        public DateTime CreationDate { get; set; }
        public DateTime UpdateDate { get; set; }
        public string UpdateLogin { get; set; }

        protected EntityBase()
        {
            CreationDate = DateTime.UtcNow;
            UpdateDate = DateTime.UtcNow;
            UpdateLogin = User.NameFor.System;
        }
    }

    public abstract class EntityBase<TKey> : EntityBase
    {
        public TKey Id { get; set; }
    }

}
